package vip.liux.contracts.shared.enums.messing;

import vip.liux.core.enums.IEnum;

/**
 * 优先级
 * <p>
 * 0 - 最低
 * 1 - 低于正常
 * 2 - 正常
 * 3 - 正常以上
 * 4 - 最高
 */
public enum Priority implements IEnum {
    LOWEST(0, "最低"),
    BELOW_NORMAL(1, "低于正常"),
    NORMAL(2, "正常"),
    ABOVE_NORMAL(3, "正常以上"),
    HIGHEST(5, "最高");

    final int value;
    final String desc;

    Priority(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}